
package com.market.web.action;

import com.market.bean.Message;

public class AdminMsgDelAction extends MessageAction
{
    public String execute() throws Exception
    {
        int id = (int)getLong("id");
        Message msg = getMessageService().findById(id);
        if (msg != null)
        {
            getMessageService().delete(msg);
        }
        return SUCCESS;
        //return new ActionForward("/adminMsgSearch.do");
    }
}
